using ConsoleApp1;
using NUnit.Framework;

namespace TestProject2
{
    public class StudentTests
    {
        [SetUp]
        public void Setup()
        {
        }

        //[Test]
        //public void Greet()
        //{
        //    Assert.Pass();
        //}
        //[Test]
        //public void Learn()
        //{

        //}
        [Test]
        public void GetMaxTest()
        {
            int max = BaseLearn.GetMax(new int[] { 1, 3, 5, 76, 44 });
            Assert.AreEqual(76, max);

            Assert.AreEqual(76, BaseLearn.GetMax(new int[] { 4, -45, 76, 3, 9 }));
            Assert.AreEqual(76, BaseLearn.GetMax(new int[] { 4, 45, 76, -1, 33 }));
            Assert.AreEqual(76, BaseLearn.GetMax(new int[] { 4, 45, 76, 1, -7 }));

        }
        [Test]
        public void PrimeNumberTest()
        {

        }
        [Test]
        public void BinarySeekTest()
        {
            Assert.AreEqual(45, BaseLearn.BinarySeek(new int[] { -3, 5, 7, 9, 14, 45, 99 }));
            //Assert.AreEqual(5, BaseLearn.BinarySeek(new int[] { -3, 5, 7, 9, 14, 45, 99 }));
            //Assert.AreEqual(100, BaseLearn.BinarySeek(new int[] { -3, 5, 7, 9, 14, 45, 99 }));

        }
        //public void GetMinTest()
        //{

        //}
    }

}